if(!window["MUI"]) window["MUI"]={};

MUI.Label = new Class({
    initialize:function(el){
	var myel = $($pick(el, document.createElement("span")));
	$extend(myel, MUI.Label.prototype);
	return myel;
    },
    
    setText:function(text){
	this.innerHTML = text;
	//this.appendText(text);
	this.fireEvent("change");
	return this;	
    },
    
    getText:function(){
	return this.firstChild.data;
    }
});


MUI.Input = new Class({
    
    Extends: MUI.Label,
        
    initialize:function(){
	myel = new Element("input", {"type":"text"});
	$extend(myel, MUI.Input.prototype);
	return myel;
    },
    
    setText:function(text){
	this.value = text;
	this.fireEvent("change");
	return this;
    },
    
    getText:function(){
	return this.value;
    }
});